package com.xinke.module.system.model.vo.mail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 邮件日志 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MailLogRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4894")
    @ExcelProperty("编号")
    private Long logId;

    @Schema(description = "用户编号", example = "28229")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    @ExcelProperty("用户类型")
    private Integer userType;

    @Schema(description = "接收邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("接收邮箱地址")
    private String receiveMailAddress;

    @Schema(description = "邮箱账号编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "360")
    @ExcelProperty("邮箱账号编号")
    private Long mailAcctId;

    @Schema(description = "发送邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发送邮箱地址")
    private String sendMailAddress;

    @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "16429")
    @ExcelProperty("模板编号")
    private Long templateId;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("模板编码")
    private String templateCode;

    @Schema(description = "模版发送人名称", example = "李四")
    @ExcelProperty("模版发送人名称")
    private String templateNickName;

    @Schema(description = "邮件标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("邮件标题")
    private String templateTitle;

    @Schema(description = "邮件内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("邮件内容")
    private String templateContent;

    @Schema(description = "邮件参数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("邮件参数")
    private String templateParams;

    @Schema(description = "发送状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("发送状态")
    private Integer sendStatus;

    @Schema(description = "发送时间")
    @ExcelProperty("发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "发送返回的消息 ID", example = "29517")
    @ExcelProperty("发送返回的消息 ID")
    private String sendMessageId;

    @Schema(description = "发送异常")
    @ExcelProperty("发送异常")
    private String sendException;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}